package com.cdie.myschool.controller;

import com.cdie.myschool.common.R;
import com.cdie.myschool.domain.dto.StudentAbilityDTO;
import com.cdie.myschool.domain.vo.StudentAbilityVO;
import com.cdie.myschool.service.StudentAbilityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 雷金臣199000347
 * @date 2022/10/12 - 21:23
 */
@RestController
public class StudentAbilityController {
    @Autowired
    private StudentAbilityService studentAbilityService;
    @RequestMapping("/getStudentAbility")
    public R<StudentAbilityVO> getStudentAbility(@RequestBody StudentAbilityDTO studentAbilityDTO){
        R<StudentAbilityVO> r=studentAbilityService.getStudentAbility(studentAbilityDTO);
        return R.Success("学生能力标签查询成功！",r);
    }
}
